#include<stdio.h>
int main()
{
	float a, b, c;
	while (scanf("%f%f%f", &a, &b, &c) != EOF)
	{

		if (a != 0)
		{
			float date = b * b - (4 * a* c);

			if (date > 0.0)
			{
				printf("x1=%.2f;x2=%.2f\n", (-b - sqrt(date)) / (2 * a),
					(-b + sqrt(date)) / (2 * a));
			}
			else if (date == 0.0)
			{
				printf("x1=x2=%.2f\n", (-b) / (2 * a));
			}
			else
			{
				printf("x1=%.2f-%.2fi;x2=%.2f+%.2fi\n", (-b) / (2 * a), sqrt(-date) / (2 * a),
					(-b) / (2 * a), sqrt(-date) / (2 * a));
			}
		}
		else
			printf("Not quadratic equation\n");

	}


	return 0;
}